<%@page import="bean.GasElpiji"%>
<%@page import="bean.Penerimaan"%>
<%@page import="bean.ConvertTanggal"%>
<%@page import="java.sql.SQLException"%>
<%@page import="java.sql.ResultSet"%>
<%@page import="java.sql.Statement"%>
<%@page import="oracle.jdbc.pool.OracleDataSource"%>
<%@page import="java.sql.Connection"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <title>Untitled Document</title>
        <style type="text/css">
            <!--
            body {
                background-color: #CCCCCC;
            }
            .style1 {
                font-family: Arial, Helvetica, sans-serif;
                font-weight: bold;
                font-size: 24px;
            }
            .style6 {font-size: 14px; font-family: Arial, Helvetica, sans-serif;}
            .style7 {font-size: 16px}
            .style8 {font-size: 14px}
            -->
        </style></head>

    <%
        Penerimaan penerimaan = new Penerimaan();
        String no_penerimaan = penerimaan.getKodePenerimaan();
    %>
    <body>
        <center>
            <p class="style1">FORM TERIMA GAS LPG</p>
            <p class="style6">PT.  KEBON ARUM GROUP</p>
            <p class="style6">&nbsp;</p>
        </center>
        <center>
            <form action="FilterSimpanTerimaGasLPG">
                <p>

                </p>
                <p>DATA GAS LPG </p>
                <table border="1">
                    <tr>
                        <th width="25" height="29" scope="col">No</th>
                        <th width="50" scope="col">Jenis</th>
                        <th width="50" scope="col">Jumlah</th>
                        <th width="120" scope="col">Harga @ tabung</th>
                    </tr>
                    <%
                        GasElpiji gasElpiji = new GasElpiji();
                        ResultSet resultSet = gasElpiji.tampilGasElpiji();
                        int counter = 1;
                        while (resultSet.next()) {
                            out.print("<tr>");
                            out.print("<td align='center'>" + (counter) + "</td>");
                            out.print("<td align='center'>" + resultSet.getString("jenisgaselpiji") + "</td>");
                            out.print("<td align='center'>" + resultSet.getString("jumlahgaselpiji") + "</td>");
                            out.print("<td align='center'>" + resultSet.getString("hargagaselpiji") + "</td>");
                            out.print("</tr>");
                            counter++;
                        }
                    %>
                </table>
                <p>&nbsp;</p>
                <table width="381" border="4">
                    <tr>
                        <td height="37"><div align="center">Kode Penerimaan</div></td>
                        <td><input name="kodePenerimaan" type="text" disabled="disabled" value="<%=no_penerimaan%>" size="12" maxlength="9" /></td>
                    </tr>
                    <tr>
                        <td width="140" height="52"><div align="center"><span class="style7">Jenis Tabung GAS</span></div></td>
                        <td width="229">
                            <p>
                                <input type="radio" name="pilih" value="3kg" checked="true"/>
                                <label>3 kg</label>
                                <br/>
                                <input type="radio" name="pilih" value="12kg"/>
                                <label>12 kg</label>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td height="36"><div align="center"><span class="style7">Jumlah</span></div></td>
                        <td>
                            <label>
                                <input name="jumlah" type="text" size="12" maxlength="6" />
                            </label>
                        </td>
                    </tr>
                    <tr>
                        <td height="40"><div align="center"><span class="style7">Harga @ tabung </span></div></td>
                        <td>
                            <label>
                                <input name="harga" type="text" size="12" maxlength="8" />
                            </label>
                        </td>
                    </tr>
                </table>
                <p>
                    
                    
                </p>
                <label>
                    <input name="Simpan" type="submit" value="Simpan" />
                </label>
            </form>
            <form method="post" action="MenuUtamaAdmin.jsp">
                <input name="Batal" type="submit" value="Batal" />
            </form>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
        </center>
    </body>
</html>
